import { $post } from '@/api/request'
const gateUrl = '/basic'

// 校区列表
export function getDepartmentInfoList (data) {
  return $post({
    url: `${gateUrl}/dept/pageQuery`,
    data
  })
}

// 编辑校区
export function updateDepartmentInfo (data) {
  return $post({
    url: `${gateUrl}/dept/updateDept`,
    data
  })
}

// 新增校区
export function addDepartmentInfo (data) {
  return $post({
    url: `${gateUrl}/dept/addDept`,
    data
  })
}

export function deleteDepartmentInfo (data) {
  return $post({
    url: `${gateUrl}/dept/deleteDept`,
    data
  })
}

// 新增校区
export function getSchool (data) {
  return $post({
    url: `${gateUrl}/school/getSepSchool`,
    data
  })
}

export function getDeptTree (data) {
  return $post({
    url: `${gateUrl}/dept/deptTree`,
    data
  })
}
